package com.ruoyi.hr.service.welfare.welfareopen;

import com.ruoyi.hr.domain.Authority;
import com.ruoyi.hr.domain.welfare.welfareopen.WelfareOpen;
import com.ruoyi.hr.domain.welfare.welfareregion.WelfareType;

import java.util.List;
import java.util.Map;


/**
 * @author zeo
 * @explain 福利开启
 * @date 2019/12/18 8:30
 */
public interface WelfareOpenService {
    /**
     * 条件加分页查询
     *
     * @param welfareOpen
     * @return
     */
    List<WelfareOpen> findData(WelfareOpen welfareOpen, List<Authority> authorities, int isAdmin);


    /**
     * 查询单个数据
     *
     * @param id
     * @return
     */
    WelfareOpen findWelfareOpen(int id);

    /**
     * 修改福利开启信息
     */
    int updateWelfareOpen(WelfareOpen welfareOpen);

    /**
     * 执行存储过程
     *
     * @param sql
     * @return
     */
    public List<List<Map<String, Object>>> executeProcedure(String sql);

    List<WelfareOpen> findDataByIds(String ids);
}
